<?php
header("Content-type: text/html; charset=utf-8");
include_once('fm/comm.php');
$myt = new thunder();
if(isset($_REQUEST)){
	extract($_REQUEST);
}
$sql = "SELECT * FROM fmmaked where uid=".$uid." and goods_id=".$gid." order by id desc ";
$data = $myt->getAll($sql);
//var_dump($data);
$str = '';
foreach($data as $d){
	$str .= "<photo>
				<id>".$d['id']."</id>
        <user_id>".$d['uid']."</user_id>
        <goods_id>".$d['goods_id']."</goods_id>
        <thumb>.".$d['thumb']."</thumb>
        </photo>";
}
$xml = '<root>'.$str.'</root>';
echo $xml;
?>